<template>
  <div style="position: fixed;top: 0px;width: 100%;z-index: 100;">
    <mt-header
      :title="htitle"
      style="font-size:18px">
      <router-link
        slot="left"
        to>
        <mt-button
          icon="back"
          style="font-size:15px"
          @click="goback">返回</mt-button>
      </router-link>
    </mt-header>
  </div>
</template>
<script>
export default {
  props: {
    // eslint-disable-next-line vue/require-default-prop
    htitle: String
  },
  data() {
    return {}
  },
  methods: {
    goback() {
      this.$router.back(-1)
    }
  }
}
</script>
<style>
</style>
